Completed CP-2#1182
Conversation
Interview Problem : Two elements sum to target (Problem1.py)This submission does not address the Interview Problem: Two elements sum to target at all. The student appears to have submitted code for a different problem (0/1 Knapsack) by mistake. To solve the Two Sum problem correctly, the student should:
The reference solution uses a brute-force O(n²) approach with nested loops. A more optimized approach would use a hash map to achieve O(n) time complexity. If this was a copy-paste error, please submit the correct solution for the Two Sum problem. If the student is learning dynamic programming, they should be aware that this is a different problem entirely. VERDICT: NEEDS_IMPROVEMENT Interview Problem: 0-1 Knapsack Problem (Problem2.py)
VERDICT: NEEDS_IMPROVEMENT |
No description provided.